package cn.edu.zjut.mina.po;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 消息记录表
 * 当用户登入的时候
 * @author 张宇翔
 */
@Table(name="t_messageRecord")
@Entity
public class MessageRecord {
	private Integer autoid;
	private String sendmessageuserId;//用户ID
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date message_time;//玩家发送消息的时间
	private String message;//消息内容
	private String roomId;//房间号
	private String other1;//其他用户的Id
	private String other2;//其他用户的Id
	private String other3;//其他用户的Id
	private String other4;//其他用户的Id
	@GeneratedValue
	@Id
	public Integer getAutoid() {
		return autoid;
	}
	public void setAutoid(Integer autoid) {
		this.autoid = autoid;
	}
	public String getSendmessageuserId() {
		return sendmessageuserId;
	}
	public void setSendmessageuserId(String sendmessageuserId) {
		this.sendmessageuserId = sendmessageuserId;
	}
	public Date getMessage_time() {
		return message_time;
	}
	public void setMessage_time(Date message_time) {
		this.message_time = message_time;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getRoomId() {
		return roomId;
	}
	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}
	public String getOther1() {
		return other1;
	}
	public void setOther1(String other1) {
		this.other1 = other1;
	}
	public String getOther2() {
		return other2;
	}
	public void setOther2(String other2) {
		this.other2 = other2;
	}
	public String getOther3() {
		return other3;
	}
	public void setOther3(String other3) {
		this.other3 = other3;
	}
	public String getOther4() {
		return other4;
	}
	public void setOther4(String other4) {
		this.other4 = other4;
	}
}
